require(['init'], function () {
    //获取学生的信息
   var uid;
   var currentid;
     $.ajax({
       url:"/api/user/current",
       type:"get",
       async:false,
       success:function(data){
         uid=data.data.userid;
      }
     })
     $.ajax({
       url:"/api/student/user/"+uid,
       type:"get",
       async:false,
       success:function(data){
          currentid=data.data.studentuid;
       }
     })
  getstudentinformation();
   function getstudentinformation(){
    $.ajax({
        url:"/api/student/"+currentid,
        method:"get",
        success:function(data){
         readerget(data.data)
        }
    })
   }
   function  readerget(data){
     console.log(data);
      var $student_information=$("#student_information").html("");
      $('<div class="formLi">\
                <div class="formTitle ">\
                    <span>姓　　　名：</span>\
                </div>\
                <div class="formContent">\
                    <span class="form-control" style="colo:#000">'+data.name+'</span>\
                </div>\
        </div>\
        <div class="formLi">\
                <div class="formTitle ">\
                    <span>生　　　日：</span>\
                </div>\
                <div class="formContent">\
                  <span class="form-control" style="colo:#000">'+(data.birthday==null?" ":(data.birthday.substr(0,11)))+'</span>\
                </div>\
          </div>\
          <div class="formLi">\
              <div class="formTitle">\
                  <span>邮　　　箱：</span>\
              </div>\
              <div class="formContent">\
                  <span class="form-control" style="colo:#000">'+(data.email==null?" ":data.email)+'</span>\
              </div>\
          </div>\
          <div class="formLi">\
              <div class="formTitle">\
                  <span>电　　　话：</span>\
              </div>\
              <div class="formContent">\
                  <span class="form-control" style="colo:#000">'+(data.mobile==null?" ":data.mobile)+'</span>\
              </div>\
          </div>\
          <div class="formLi">\
              <div class="formTitle">\
                  <span>classIn账号：</span>\
              </div>\
              <div class="formContent">\
                  <span class="form-control" style="colo:#000">'+(data.ClassInNo==null?" ":data.ClassInNo)+'</span>\
              </div>\
          </div>\
          <div class="formLi">\
              <div class="formTitle">\
                  <span>备　　　注：</span>\
              </div>\
              <div class="formContent">\
                <span class="form-control"  style="height:100px;word-break: break-all;colo:#000;width:300px;" >'+(data.remark==null?" ":data.remark)+'</span>\
              </div>\
          </div>\
        </div>').appendTo($student_information);
        $('.formContent').find('span').css('color','#000')

   }
})
